/**
 * 做与数据操作相关（数据访问层）
 */

package com.xczl.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xczl.demo.domain.Goods;

public interface GoodsDao {
	
	public void insertGoods(Goods goods);
	
	public void updateGoods(Goods goods);
	
	public void deleteGoods(Goods goods);
	
	public Goods findById(int id);
	
	public List<Goods> findAll();

	public void setState(@Param("id")int id, @Param("state")int state);

}
